package com.itheima.controller;

import com.itheima.config.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class controller {

    @Autowired
    private Person person;

    @RequestMapping("hello")
    public String Hello(){
        System.out.println(person);
        return "你好。springboot";
    }
}
